'use strict';


const Koa = require('koa');
let app = new Koa();

const controller=require('./controllers');
const model=require('./model');
const cors=require('koa2-cors');


app.use(cors());
// 注册路由
controller(app);

// model.sync(true);

let port = 4000;

app.listen(port);

console.log(`http://localhost:${port}`);